package com.ruoyi.depot.mapper;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.ruoyi.depot.domain.WalmartStockProductDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【walmart_stock_product_details(walmart备货产品明细表)】的数据库操作Mapper
* @createDate 2025-02-27 10:12:29
* @Entity com.ruoyi.depot.domain.WalmartStockProductDetails
*/
@Mapper
public interface WalmartStockProductDetailsMapper extends BaseMapper<WalmartStockProductDetails> {

	/**
	 * 批量插入备货计划和明细关联记录
	 * @param list
	 * @return
	 */
	int insertBatch(@Param("list") List<WalmartStockProductDetails> list);

	/**
	 * 根据备货计划id查询对应的明细记录
	 * @param stockIds
	 * @return
	 */
	List<WalmartStockProductDetails> selectListByStockIds(@Param("stockIds") String[] stockIds);

	/**
	 * 查询本次导入的备货计划在其他备货计划是否已经导入了
	 * @param skus
	 * @param deletedStatus
	 * @param stockId
	 * @return
	 */
	List<WalmartStockProductDetails> selectListNotImport(@Param("skus") List<String> skus,
														 @Param("flag") Integer deletedStatus,
														 @Param("stockId") String stockId);

	List<String> selectStockIdsBySku(@Param("searchSku") String searchSku);

}




